package com.turing.common.exception;

public class DuplicateRoleNameException extends Exception {

    private String message;

    private String code;

    public DuplicateRoleNameException() {
        this.code = "445";
        this.message = "角色名重复，请检查";
    }

    public DuplicateRoleNameException(String message, String code) {
        this.message = message;
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}
